package com.moyun.finance.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;

/**
 * 应收(付)款列表实体类
 */
@Entity
@Data
public class Receivables {
    @Id
    private String id;

    private String contractId;//合同id

    private String companyId;//公司id

    private String projectsId;//项目id

    private String productId;//产品id

    private String customerId;//客户id

    private String receivablesName;//应收(付)款名

    private String receivablesDate;//应收(付)款日期

    private double receivablesMoney;//应收(付)款金额

    private double alreadyMoney;//已收(付)款金额

    private double surplusMoney;//剩余应收(付)金额

    private int state;//状态 0:应付 1:应收

    private int invoice;//是否开票 0:开  1:不开

    private String userId;//负责人(申请人)用户id

    @Transient
    String accountId;//账户id

    @Transient
    private String contractName;//合同名

    @Transient
    private Customer customer;//客户

    @Transient
    private Projects projects;//项目

    @Transient
    private Product product;//产品

    @Transient
    private OrgUser user;//负责人(申请人)用户

    @Transient
    private Contract contract;//合同
}
